﻿<UserControl x:Class="wathammer40kListBuilder.View.NewInfantry"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="*"  />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        
        <Label          HorizontalAlignment="Right" Margin="2" Content="Nom:" Grid.Row="0"/>
        <TextBox        HorizontalAlignment="Left"  Margin="2" Width="100" Text="{Binding Name}" Grid.Row="0" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="cc:" Grid.Row="1"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding WeaponSkill}" Grid.Row="1" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="ct:" Grid.Row="2"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding BallisticSkill}" Grid.Row="2" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="f:" Grid.Row="3"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding Strengh}" Grid.Row="3" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="e:" Grid.Row="4"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding Thougness}" Grid.Row="4" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="pv:" Grid.Row="5"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding Wounds}" Grid.Row="5" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="i:" Grid.Row="6"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding Initiative}" Grid.Row="6" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="att:" Grid.Row="7"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding Attack}" Grid.Row="7" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="cmd:" Grid.Row="8"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding Leadership}" Grid.Row="8" Grid.Column="1"/>
        <Label          HorizontalAlignment="Right" Margin="2" Content="svg:" Grid.Row="9"/>
        <TextBox        HorizontalAlignment="Right" Margin="2" Width="100" Text="{Binding ArmorSave}" Grid.Row="9" Grid.Column="1"/>
        <Label      HorizontalAlignment="Right" Margin="2" Grid.Row="10">Description:</Label>
        <TextBox    Margin="2" Grid.Row="10" Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding Description}" />


        <Button         Margin="2" Click="Button_Click" Grid.Row="11" Grid.Column="1">
            <Button.Content>Valider</Button.Content>
        </Button>
    </Grid>
</UserControl>
